home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
dosutils
/
tsbat50.zip
/
LOCATE.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-08-29
|
722b
|
30 lines
echo off
echo.
echo ┌───────────────────────────────────────────────────┐
echo │ Wildcard locate file names on a device │
echo │ By Prof. Timo Salmi, ts@uwasa.fi, Sat 29-Aug-1992 │
echo └───────────────────────────────────────────────────┘
rem Trick: below is echo + ascii 255
echo
if "%1"=="" goto _help
if "%2"=="/p" goto _more
attrib %1 /s
goto _out
:_more
attrib %1 /s | more
goto _out
:_help
echo Usage: LOCATE [Device:\]FileSearchString [/p(age)]
echo.
echo Examples:
echo LOCATE c:\tsbat.nws finds all occurrences of tsbat.nws on C disk
echo LOCATE d:\*.com finds all .com files on D disk
echo LOCATE e:\ts*.zip finds all ts-packages on E disk
:_out
echo on